package com.qingxin.qrCode.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

@Entity
@Table(name="qr_code")
public class QRCode extends com.qingxin.sys.entity.BaseEntity implements
java.io.Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = -9092255452092736548L;

	private String codeid;
	private String companyid;
	private String parkid;
	private String cropid;
	private String createBy;
	private Date createTime;
	private Integer shu;
	private String parkcode;
	private String companycode;
	private String cropcode;
	private String deltype;
	private String type;
	
	private String parkName;
	private String companyName;
	private String cropName;
	
	private String qrcodeStart;
	private String qrcodeEnd;
	
	public QRCode() {
		super();
		// TODO Auto-generated constructor stub
	}

	

	public QRCode(String codeid, String companyid, String parkid,
			String cropid, String createBy, Date createTime, Integer shu,
			String parkcode, String companycode, String cropcode,
			String deltype, String type) {
		super();
		this.codeid = codeid;
		this.companyid = companyid;
		this.parkid = parkid;
		this.cropid = cropid;
		this.createBy = createBy;
		this.createTime = createTime;
		this.shu = shu;
		this.parkcode = parkcode;
		this.companycode = companycode;
		this.cropcode = cropcode;
		this.deltype = deltype;
		this.type = type;
	}
	
	public QRCode(String codeid, String companyid, String parkid,
			String cropid, String createBy, Date createTime, Integer shu,
			String parkcode, String companycode, String cropcode,
			String deltype, String type, String parkName, String companyName,
			String cropName, String qrcodeStart, String qrcodeEnd) {
		super();
		this.codeid = codeid;
		this.companyid = companyid;
		this.parkid = parkid;
		this.cropid = cropid;
		this.createBy = createBy;
		this.createTime = createTime;
		this.shu = shu;
		this.parkcode = parkcode;
		this.companycode = companycode;
		this.cropcode = cropcode;
		this.deltype = deltype;
		this.type = type;
		this.parkName = parkName;
		this.companyName = companyName;
		this.cropName = cropName;
		this.qrcodeStart = qrcodeStart;
		this.qrcodeEnd = qrcodeEnd;
	}



	@GenericGenerator(name = "generator", strategy = "uuid.hex")
	@Id
	@GeneratedValue(generator = "generator")
	@Column(name = "codeid", unique = true, nullable = false, length = 32)
	public String getCodeid() {
		return codeid;
	}

	public void setCodeid(String codeid) {
		this.codeid = codeid;
	}

	@Column(name = "companyid", length = 32)
	public String getCompanyid() {
		return companyid;
	}

	public void setCompanyid(String companyid) {
		this.companyid = companyid;
	}

	@Column(name = "parkid", length = 32)
	public String getParkid() {
		return parkid;
	}

	public void setParkid(String parkid) {
		this.parkid = parkid;
	}

	@Column(name = "cropid", length = 32)
	public String getCropid() {
		return cropid;
	}

	public void setCropid(String cropid) {
		this.cropid = cropid;
	}

	@Column(name = "create_by", length = 32)
	public String getCreateBy() {
		return createBy;
	}

	public void setCreateBy(String createBy) {
		this.createBy = createBy;
	}

	@Column(name = "create_time", length = 23)
	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	
	@Column(name = "shu")
	public Integer getShu() {
		return shu;
	}

	public void setShu(Integer shu) {
		this.shu = shu;
	}

	@Column(name = "parkcode", length = 50)
	public String getParkcode() {
		return parkcode;
	}

	public void setParkcode(String parkcode) {
		this.parkcode = parkcode;
	}
	
	@Column(name = "companycode", length = 50)
	public String getCompanycode() {
		return companycode;
	}

	public void setCompanycode(String companycode) {
		this.companycode = companycode;
	}

	@Column(name = "cropcode", length = 50)
	public String getCropcode() {
		return cropcode;
	}

	public void setCropcode(String cropcode) {
		this.cropcode = cropcode;
	}

	@Column(name = "deltype", length = 1)
	public String getDeltype() {
		return deltype;
	}

	public void setDeltype(String deltype) {
		this.deltype = deltype;
	}
	@Column(name = "type", length = 1)
	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	@Column(name = "park_name", length = 100)
	public String getParkName() {
		return parkName;
	}
	public void setParkName(String parkName) {
		this.parkName = parkName;
	}

	@Column(name = "company_name", length = 100)
	public String getCompanyName() {
		return companyName;
	}
	public void setCompanyName(String companyName) {
		this.companyName = companyName;
	}

	@Column(name = "crop_name", length = 50)
	public String getCropName() {
		return cropName;
	}
	public void setCropName(String cropName) {
		this.cropName = cropName;
	}

	@Column(name = "qrcode_start", length = 50)
	public String getQrcodeStart() {
		return qrcodeStart;
	}
	public void setQrcodeStart(String qrcodeStart) {
		this.qrcodeStart = qrcodeStart;
	}

	@Column(name = "qrcode_end", length = 50)
	public String getQrcodeEnd() {
		return qrcodeEnd;
	}
	public void setQrcodeEnd(String qrcodeEnd) {
		this.qrcodeEnd = qrcodeEnd;
	}
	
	

	
}
